package com.fujica.db_operation.help;

import com.fujica.db_operation.config.EGender;
import com.google.common.collect.Maps;

import java.util.Map;

/**
 * @ClassName Helper
 * @Description TODO
 * @Author admin
 * @Date 2020/6/18 16:21
 * @Version 1.0
 **/
public class Helper {
    public static Map<String, Integer> genderMap = Maps.newHashMap();

    static {
        if (genderMap.isEmpty()) {
            for (EGender item : EGender.values()) {
                Integer value = item.getValue();
                genderMap.put(item.getEn(), value);
                genderMap.put(item.getZh(), value);
            }
        }
    }
}
